package mytest.ssw.www.api;

import java.util.HashMap;
import java.util.List;

import mytest.ssw.www.mylibrary.DeptNode;
import mytest.ssw.www.mylibrary.UserInfo;
import mytest.ssw.www.mylibrary.Contents;
import mytest.ssw.www.mylibrary.getTheContent;
import mytest.ssw.www.mylibrary.Student;
import mytest.ssw.www.mylibrary.StudentInfo;

/**
 * Created by 73409 on 2015/11/7.
 */
public interface Api {

    // 发送验证码
    public final static String SEND_SMS_CODE = "service.sendSmsCode4Register";
    // 注册
    public final static String REGISTER = "customer.registerByPhone";
    // 登录
    public final static String LOGINURL = "webLogin.do";
    //获取用户信息
    public final static String searchUserInfo = "system/user/getUserInfo.do";
    //获取菜单
    public final static String getMenuList = "getMenuList.do";
    //学生信息查询
    public final static String getDeptNode = "system/department/getTreeList.do";
    //获取用户信息
    public  final static  String getUserInfo="system/user/getUserInfo.do";
  //获取学生信息num
  public final  static  String getStuInfo= "base/student/getStudentInfo.do";
    //获取教师
    public final  static  String geTeacherInfo= "base/teacher/getTeacherInfo.do";

    //获取用户基本
    public final  static String searchInfo="system/user/getGridList.do";
    //搜索学生信息
    public final  static String searchStuInfo="base/student/getGridList.do";
    //搜索学生信息
    public final  static String searchTeacherInfo="base/teacher/getGridList.do";
    //修改教师信息 /base/teacher/modifyTeacherInfo.do
    public final  static String modifyTeacherInfo="/base/teacher/modifyTeacherInfo.do";
    //修改学生信息  /base/student/modifyStudentInfo.do
    public final  static String modifyStuInfo="base/student/modifyStudentInfo.do";

    public final  static String para="\"studentInfo\":{\"id\":\"88fda62d-4cfc-4090-beaf-574ee093b3d3\",\"num\":\"201211010218\",\"name\":\"王刚\",\"departmentNum\":\"BM_01_02_01_01_02\",\"gender\":\"male\",\"dormitory\":\"润泽苑7栋216\",\"photoPath\":\"sdfs\",\"phoneNum\":\"15288266864\",\"nation\":\"汉族\",\"politicalStatus\":\"共青团员\",\"birthday\":734976000000,\"birthplace\":\"\",\"parentName\":\"\",\"parentPhone\":\"\",\"homeAddress\":\"\",\"postCode\":\"\",\"valid\":true,\"qq\":\"\",\"imeinum\":\"\"}";
    //
    public final  static  String PERSONALURL="business/notice/getNotice.do";//获取通知
    public final  static  String sendToAndroidURL="business/notice/sendAndroidNotice.do";//发送通知
    /**
     * 发送验证码
     *
     * @param phoneNum 手机号码
     * @return 成功时返回：{ "code": 0, "msg":"success" }
     */
    public ApiResponse<Void> sendSmsCode4Register(String phoneNum);

    /**
     * 注册
     *
     * @param phoneNum 手机号码
     * @param code     验证码
     * @param password MD5加密的密码
     * @return 成功时返回：{ "code": 0, "msg":"success" }
     */
    public ApiResponse<Void> registerByPhone(String phoneNum, String code, String password);

    /**
     * 登录
     *
     * @param loginName 登录名（手机号）
     * @param password  MD5加密的密码
     * @return 成功时返回：{ "code": 0, "msg":"success" }
     */
    public ApiResponse<Void> loginByApp(String loginName, String password);

    /**
     * 券列表
     *
     * @param currentPage 当前页数
     * @param pageSize    每页显示数量
     * @return 成功时返回：{ "code": 0, "msg":"success", "objList":[...] }
     */
    public ApiResponse<List<UserInfo>> listNewCoupon(int currentPage, int pageSize);
    public ApiResponse<List<Contents>> SearchInfo(HashMap<String,String> map);
    public  List<DeptNode> GetDeptNode();
    public ApiResponse<StudentInfo> GetSomeoneInfo(String account);
    public ApiResponse<UserInfo> GetUserInfo(String account);
    public ApiResponse<Student> modifyStuInfo(StudentInfo info);
    public List<getTheContent> GetTheContent(String reciver);
    public ApiResponse<Void> sendPost(String contentA, String sendPersonNumA,String receiverNumsA);
}
